//
//  NewsTitle.m
//  19-JSON网易
//
//  Created by 曹曹 on 16/8/9.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "NewsTitle.h"

@implementation NewsTitle
- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (instancetype)newsTitleWithDictionary:(NSDictionary *)dictionary {
    return [[self alloc] initWithDictionary:dictionary];
}
#pragma mark - 和系统关键字重名的属性赋值方法
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"news_template"]) {
        _news_template = value;
    }
}
- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
@end
